$limit: 10;

@for $x from 1 through $limit {
  $limit: 4;
  div {
    $limit: 3;
    content: $limit thing $x;
  }
}